<?php

declare(strict_types=1);

namespace App\Inc;

/**
 * Class AdvertInc
 */
class AdvertInc
{
    /**
     * 位置ID 1首页顶部  2领券中心
     */
    public const ADVERT_POSITION_首页顶部       = 1;
    public const ADVERT_POSITION_领券中心       = 2;
    public const ADVERT_POSITION_USERCENTER = 3;
    public const ADVERT_POSITION_ALL        = [
        self::ADVERT_POSITION_首页顶部       => '首页顶部banner',
        self::ADVERT_POSITION_领券中心       => '领券中心banner',
        self::ADVERT_POSITION_USERCENTER => '用户中心banner',
    ];
    public const ADVERT_POSITION_ALL_SIZE = [
        self::ADVERT_POSITION_首页顶部       => '690*270',
        self::ADVERT_POSITION_领券中心       => '750*360',
        self::ADVERT_POSITION_USERCENTER => '298*87',
    ];
    // const ADVERT_POSITION_VALUE_ALL = [
    //     self::ADVERT_POSITION_首页顶部,
    //     self::ADVERT_POSITION_领券中心,
    // ];

    //跳转类型  1无跳转  2外部链接跳转
    public const ADVERT_URL_TYPE_无跳转    = 1;
    public const ADVERT_URL_TYPE_外部链接跳转 = 2;
    public const ADVERT_URL_TYPE_ALL    = [
        self::ADVERT_URL_TYPE_无跳转    => '无跳转',
        self::ADVERT_URL_TYPE_外部链接跳转 => '外部链接跳转',
    ];

    /**
     * 广告状态值 advert_status[ 1正常  2不正常]
     */
    public const ADVERT_STATUS_正常  = 1;
    public const ADVERT_STATUS_不正常 = 2;
    public const ADVERT_STATUS_ALL = [
        self::ADVERT_STATUS_正常  => '正常',
        self::ADVERT_STATUS_不正常 => '不正常',
    ];

    //上下架状态 1有效  2不生效
    public const UPPER_LOWER_STATUS_有效  = 1;
    public const UPPER_LOWER_STATUS_不生效 = 2;
    public const UPPER_LOWER_STATUS_ALL = [
        self::ADVERT_URL_TYPE_无跳转   => '有效',
        self::ADVERT_URL_TYPE_应用内跳转 => '不生效',
    ];
}
